{% extends "base.html" %}
{% block title_descn %}最新点评{% endblock %}

{% block middle %}

 <div class="row-fluid">
<div class="span10 offset1 ">
<h3><span class="label label-info">最新点评</span></h3>

<div >
	<table class="table table-hover">
	<thead><tr>
		<th>内容</th>
		<th>评论人</th>
		<th>时间</th>
		<th>图片</th>
		<th>所有者</th>
	</tr>
    </thead>
        <tbody>
	{% for c in object_list %}
		<tr class="{% cycle null,bggrey %}">
			<td><a href="/photos/{{c.photo.id}}/#beginComment">{{c.get_short_comment}}</a></td>
			<td><a href="/space/{{c.author.id}}/">{{c.author.username}}</a></td>
			<td>{{c.create_date}}</td>
			<td><a href="/photos/{{c.photo.id}}/"><img class="img-polaroid" alt="{{c.photo.title}}" src="{{c.photo.thumb_small_photo_url}}"></a></td>
			<td><a href="/space/{{c.photo.user.id}}/">{{c.photo.user.username}}</a></td>
		</tr>
	{% endfor %}
	</tbody>
    </table>
</div>

</div>
 </div>


<div class="row-fluid">

<div id="pagination"  class="offset4 span4">
    <form method="get" name="pform" action="">
	<a>{{page}}/{{pages}} 页</a>
        <div class="input-append">
	<input name="page" size="4" maxlength="255" value="1"  type="text">
	<button class="btn " onclick="document.pform.submit(); return false;">GO</button>
        </div>



{% if has_previous %}
	<a href="/allcomments/?page=1">首页</a>
	<a href="/allcomments/?page={{ previous }}">上一页</a>
{% endif %} {% if has_next %}
	<a href="/allcomments/?page={{ next }}">下一页</a>
	<a href="/allcomments/?page={{pages}}">尾页</a>	
{% endif %}
    </form>


</div>
</div>
{% endblock %}
